<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片低侧空白缝隙解决方案</title>
    <style>
        div {
           
            border: 1px solid red;
        }
        /* 给图片添加一个vertical-align 属性 值，上 中 下都可以 */
        img {
            vertical-align:top;
            /* vertical-align:middle;
             vertical-align:bottom;
             */
        }
    </style>
</head>
<body><div>
    <img src="images/ldh.jpg" alt="">图片低侧空白缝隙解决方案
</div>
</body>
</html>